package com.test.configclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:fangn
 * @Date:2019/11/10
 **/
@RestController
public class ConfigHelloController {

    @Value("${ff}")
    private String configValue;

    @GetMapping(value = "/hi")
    public String hello(){
        return configValue;
    }
}
